package fu.capstone.hanoicityguide.business.bo.taxi;

import java.util.ArrayList;

import android.content.Context;

import fu.capstone.hanoicityguide.business.model.Taxi;
import fu.capstone.hanoicityguide.dataaccess.taxi.TaxiDAO;
import fu.capstone.hanoicityguide.dataaccess.taxi.TaxiDAOImp;

public class TaxiBOImp implements TaxiBO{

	private Context context;
	private TaxiDAO dao;
	
	public Context getContext() {
		return context;
	}
	
	public void setContext(Context ctx) {
		this.context = ctx;
	}
	
	public TaxiBOImp (Context ctx) {
		this.context = ctx;
		dao = new TaxiDAOImp(context);
	}
	
	@Override
	public ArrayList<Taxi> listTaxi(String filter, String sorter) {
		// TODO Auto-generated method stub
		ArrayList<Taxi> arrTaxi = dao.listTaxi(filter, sorter);
		return	arrTaxi;
	}

	@Override
	public ArrayList<Taxi> searchTaxi(String filter, String sorter,
			String keyWord) {
		// TODO Auto-generated method stub
		return null;
	}

}
